package API001;
public class ObjectDemo {
    public static void main(String[] args) throws CloneNotSupportedException {
        Person p = new Person("????",22);
        Person p1 = new Person("????",22);
        System.out.println(p == p1);
        System.out.println(p.equals(p1));
        System.out.println(p.getName().equals(p1.getName()));

        System.out.println(p);

        int[] date = {1,2,3,4,5,6,7,8};
        User u = new User(1,"laowang","1001","1234",date);
        System.out.println(u);
        //clone?????????
        User clone = (User) u.clone();
        System.out.println(clone);
    }
}
